package com.yxw.live_vod_backend_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 计费设置实体类 yx_billing_setup
 *
 * @author xiexuxin
 * @date 2023-09-30
 */
@Data
@TableName("yx_billing_setup")
@ApiModel("计费设置实体类")
public class YxBillingSetupEntity {
    private static final long serialVersionUID = 1L;

    @TableId(value = "billing_setup_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键id")
    private Long billingSetupId;

    @TableField("per_minute_consume")
    @ApiModelProperty("直播每分钟消耗视频币,默认为1")
    private Integer perMinuteConsume;

    @TableField("start_time")
    @ApiModelProperty("启播时长")
    private Integer startTime;

    @TableField("wedding_candies")
    @ApiModelProperty("喜糖,默认为1")
    private Integer weddingCandies;

    @TableField("video_coin")
    @ApiModelProperty("视频币,1喜糖兑换多少视频币")
    private Integer videoCoin;

    @TableField("on_demand_space")
    @ApiModelProperty("店铺点播空间")
    private Integer onDemandSpace;

    @TableField("set_hour")
    @ApiModelProperty("设置时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date setHour;

    @TableField("set_user_id")
    @ApiModelProperty("设置人Id")
    private Long setUserId;

    @TableField("set_user_name")
    @ApiModelProperty("设置人名称")
    private String setUserName;

    @TableField("status")
    @ApiModelProperty("状态，0表示启用，1表示禁用")
    private Integer status;

    @TableField("billing_type")
    @ApiModelProperty("计费设置类型")
    private Integer billingType;

}
